package com.yjd.comm.activity.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.activity.model.CashRewardModel;
import com.yjd.comm.activity.model.CommonOrderModel;

/**
 * <b>description</b>：客户消息订单业务接口<br>
 * <b>time</b>：2015-11-25 14:50:41 <br>
 * <b>author</b>： renbangie renbangjie_vip@163.com
 */
public interface ICashRewardService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public CashRewardModel insert(CashRewardModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(CashRewardModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

	public void insertCashRewardByOrder(CommonOrderModel model,Long activity_id)
			throws Exception;

	public void receiveCashReward(Long id, Long user_id) throws Exception;

}
